package com.ywk.pattern._27_interpreter;

public class Note extends Expression {
    @Override
    public void excute(String playKey, double playValue) {
        String note = "";
        switch (playKey) {
            case "C":
                note = "Do";
                break;
            case "D":
                note = "Re";
                break;
            case "E":
                note = "Mi";
                break;
            case "F":
                note = "Fa";
                break;
            case "G":
                note = "So";
                break;
            case "A":
                note = "La";
                break;
            case "B":
                note = "Ti";
                break;
        }
        System.out.print(note + " ");
    }
}
